package com.example.demo.mapper;

import com.example.demo.entity.ChapterList;
import com.example.demo.entity.Novel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wan
 * @version 1.0.0
 * @Description 小说mapper
 * @createTime 2021年08月26日 10:29:10
 */
@Mapper
public interface NovelMapper {

    String getPath(String name);

    int insertNovel(@Param("novel") Novel novel);

    void deleteNovel(String novelName);

    List<Novel> getNovels();

    Novel getNovel(String novelName);

    int insertChapterList(ChapterList chapterList, String novelName);
}
